﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Schedule_Components_ScheduleHistory :GetTogether.Studio.Web.UI.Control
{
    public string ScheduleName;
    protected GetTogether.Studio.Schedule.ScheduleHistoryList Histories;
    protected void Page_Load(object sender, EventArgs e)
    {
        Histories = GetTogether.Studio.Schedule.ScheduleHistoryList.GetHistorys(ScheduleName);
        if (Histories != null && Histories.Count > 0)
        {
            rpHistory.DataSource = Histories.GetPaging(20, 1);
            rpHistory.DataBind();
        }
    }

    protected string GetError(string error)
    {
        if (string.IsNullOrEmpty(error)) return string.Empty;
        return string.Format("<tr><td colspan='4' style='color:red;'>{0}</td></tr>", error);
    }
}